package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @Author: Yun
 * @Date: 2024/3/4
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    IPage<User> queryByAge(IPage<User> page, @Param("age") Integer age);


    int insertBatch(@Param("userCollection") Collection<User> userCollection);
    
}
